package com.csnf.dao;

import com.csnf.entity.Courses;
import com.csnf.util.SqlSessionUtil;
import org.apache.ibatis.session.SqlSession;

import java.io.IOException;
import java.util.List;

public class CoursesDaoImpl implements CoursesDao {
    @Override
    public List<Courses> finaAll() throws IOException {
        SqlSession sqlSession = SqlSessionUtil.getSqlSession();
        List<Courses> stuList = sqlSession.selectList("com.csnf.dao.IStudentDao.findAll");
        sqlSession.close();
        return stuList;
    }
}